<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<!-- 引入easyui的css -->
<link rel="stylesheet" type="text/css" href="<%=path%>/static/easyui_1_5_3/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=path%>/static/easyui_1_5_3/themes/icon.css">
<!-- 引入easyui的js -->
<script type="text/javascript" src="<%=path%>/static/easyui_1_5_3/jquery.min.js"></script>
<script type="text/javascript" src="<%=path%>/static/easyui_1_5_3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=path%>/static/easyui_1_5_3/locale/easyui-lang-zh_CN.js"></script>

<script type="text/javascript">
function login1(){
	loginForm.submit();
}
function login2(){
	if($("#loginForm").form('validate')){
		loginForm.submit();
	}
}
function login3(){
	$("#loginForm").form('submit',{
		url: "check.jsp",
		data: $(this).serialize(),
		onSubmit: function(){
			var isValid = $(this).form('validate');
			return isValid;	// 返回false将停止form提交 
// 			return true;
		},
		success: function(data){
			alert("成功");	// 当成功提交之后隐藏进度条
		},
		error: function(data){
			alert("失败");
		}
	});
}
</script>
</head>

<body>
<div id="win" class="easyui-window" title="My Window" 
	style="width:600px;height:400px;padding:5px;" 
	data-options="iconCls:'icon-save',modal:true">
	<div class="easyui-layout" data-options="fit:true">
		<div region='center'>
		<form id="loginForm" action="check.jsp" method="post">
			<table>
				<tr>
					<td>账户:</td>
					<td><input name="name" type="text" class="easyui-validatebox" data-options="required:true"></input></td>
				</tr>
				<tr>
					<td>邮箱:</td>
					<td><input name="email" type="text" class="easyui-validatebox" data-options="required:true, validType:'email'"></input></td>
				</tr>
				<tr>
					<td>密码:</td>
					<td><input name="password" type="password" class="easyui-validatebox"></input></td>
				</tr>
				<tr>
					<td></td>
<!-- 					<td><input type="submit" value="登录"></input></td> -->
					<td>
						<a href="#" class="easyui-linkbutton" onclick="login1()" >登录1</a>
						<a href="#" class="easyui-linkbutton" onclick="login2()" >登录2</a>
						<a href="#" class="easyui-linkbutton" onclick="login3()" >登录3</a>
					</td>
				</tr>
			</table>
		</form>
		</div>
	</div>
</div>
</body>
</html>